{@$week=$Model->getWeek($selected_date)}
{@$position=1+($user_data->page-1)*20}
<div class="center">{$monday = zDate(date("YmdHis",strtotime($week->monday)),"Y-m-d")} ~ {$sunday = zDate(date("YmdHis",strtotime($week->sunday)),"Y-m-d")}</div><br/>

<div >{$lang->attendance_search_help}</div>

<!--//검색상자-->
<form action="./" method="get" class="adminSearch">
<input type="hidden" name="mid" value="" />
<input type="hidden" name="module" value="{$module}" />
<input type="hidden" name="act" value="{$act}" />
<input type="hidden" name="type" value="{$type}" />
<input type="hidden" name="selected_date" value="{$selected_date}" />

    <fieldset>
        <select name="unjoined_members">
            <option value="" <!--@if(!$unjoined_members)-->selected="selected"<!--@end-->>{$lang->attendance_about_unjoined_member}</option>
            <option value="Y" <!--@if($unjoined_members)-->selected="selected"<!--@end-->>{$lang->attendance_unjoined_member}</option>
        </select>
        <select name="selected_group_srl">
            <option value="0">{$lang->group}</option>
            <!--@foreach($group_list as $key => $val)-->
            <option value="{$val->group_srl}" <!--@if($selected_group_srl==$val->group_srl)-->selected="selected"<!--@end-->>{$val->title}</option>
            <!--@end-->
        </select>
        <select name="search_target">
            <option value="" <!--@if(!$search_target)-->selected="selected"<!--@end-->>{$lang->search_target}</option>
            <option value="user_id" <!--@if($search_target=='user_id')-->selected="selected"<!--@end-->>{$lang->user_id}</option>
            <!--option value="user_name" <!--@if($search_target=='user_name')-->selected="selected"<!--@end-->>{$lang->user_name}</option-->
            <option value="nick_name" <!--@if($search_target=='nick_name')-->selected="selected"<!--@end-->>{$lang->nick_name}</option>
            <option value="email_address" <!--@if($search_target=='user_id')-->selected="selected"<!--@end-->>{$lang->email}</option>
        </select>
        <input type="text" name="search_keyword" value="{htmlspecialchars($search_keyword)}" class="inputTypeText" />
        <span class="button"><input type="submit" value="{$lang->cmd_search}" /></span>
        <a href="#" onclick="location.href='{getUrl('','type',$type,'act',$act,'module',$module)}';return false;" class="button"><span>{$lang->cmd_cancel}</span></a>
    </fieldset>
</form>

<table cellspacing="0" class="rowTable" >
	<tr>
		<th class="center">
			{$lang->position} 
		</th>
		<td class="center">
			{$lang->email}
		</td>
		<th class="center">
			{$lang->nick_name}
		</th>
		<!--td class="center">
			{$lang->user_name}
		</td-->
		<th style="min-width:240px;" class="center">
			{$lang->view_weekly_day}
		</th>
		<td class="center">
			{$lang->view_weekly_point}
		</td>
	</tr>
<!--@foreach($user_data->data as $ranking)-->
<tr>
	<th class="center"> 
		{$position}
	</th>
	<td class="center"> 
		{@$user_info = $oMemberModel->getMemberInfoByMemberSrl($ranking->member_srl)}
        {$user_info->email_address}
	</td>
	<th class="center"> 
		<div class="member_{$user_info->member_srl}">{$user_info->nick_name}</div>
	</th>
	<!--td class="center"> 
		{$user_info->user_name}
	</td-->
	<th style="min-width:240px;">
			<div class="admin_graph">
				{@$percent=(int)($ranking->weekly/7 * 100)}
                <div class="progress" style="width:{$percent}%">
                    <!--@if($percent>=50)--><!--@if($percent == 100)-->{$lang->attendance_perfect}<!--@else-->{$percent}%<!--@end--><!--@else-->&nbsp;<!--@end-->
                </div>
					<div class="num" style="left:{$percent}%;width:{100-$percent}%;">
					<strong>{$ranking->weekly}</strong>/7<!--@if($percent<50)-->({$percent}%)<!--@end-->
					</div>
        		</div>
	</th>
	<td class="center">
		{$ranking->weekly_point}
	</td>
</tr>
{@$position++}
<!--@end-->
</table>

<!--//페이지 네비게이션-->
<div class="pagination a1">
   <a href="{getUrl('page',$user_data->page_navigation->first_page,'module_srl','')}" class="prevEnd">{$lang->first_page}</a> 
    <!--@while($page_no = $user_data->page_navigation->getNextPage())-->
        <!--@if($user_data->page == $page_no)-->
            <strong>{$page_no}</strong> 
        <!--@else-->
            <a href="{getUrl('page',$page_no,'module_srl','')}">{$page_no}</a> 
        <!--@end-->
    <!--@end-->
    <a href="{getUrl('page',$user_data->page_navigation->last_page,'module_srl','')}" class="nextEnd">{$lang->last_page}</a>
</div>
